<div ng-controller="confirmCtl">
	<div class="table-header mt5 clearfix ng-scope">
		<span class="fl lh30 f14">支付信息</span>
	</div>
	<div>
		<my-nav data-nav-items="pay_way" onchanged="changePayway" data-title="支付方式:"></my-nav>
		<my-nav data-nav-items="product_name" onchanged="changeProductType" data-title="商品名称:"></my-nav>
		<my-nav data-nav-items="refund_status" onchanged="changeRefundStatus" data-title="确认状态:"></my-nav>
	</div>
	<div class="section-table mt20">
		<div class="table-header lh30 pb5 clearfix">
			<span class="fl f14">支付列表</span>

			<div class="fr btn-group">
				<span class="fl">支付时间：</span>
				<input id="beginDate" type="text" class="fl input-text w120 ml3 input-date" ng-model="beginDate"
				       ng-enter="query.execute()" ui-date format="yyyy-MM-dd" value="">
				<span class="fl ml3">-</span>
				<input id="endDate" type="text" class="fl input-text w120 ml3 input-date" ng-model="endDate"
				       ng-enter="query.execute()" ui-date format="yyyy-MM-dd">
				<input type="text" class="fl input-text w200 ml3" placeholder="支付平台单号/订单号/金额" ng-model="query.keyword"
				       ng-enter="query.execute()">
				<button class="btn" ng-click="query.execute()">查询</button>

				<input type="text" class="hidden" ng-model="confirmDisabled" value="confirmDisabled">
				<button id="confirm-refund-btn" href="javascript:;" class="btn" ng-disabled="confirmDisabled == true"
				        ui-dialog="确认回款"
				        ui-dialog-data="{qureyData: qureyData}"
				        ui-dialog-show="confirmRefundService.onRefundEditShow(contractBaseInfo.contract_id,$dialog,$dialogScope, 1,lists,pname,total_pay_amount)"
				        ui-dialog-ok="confirmRefundService.editRefundSave($data,$dialog,$dialogScope,reloadRefund,pname)"
				        ui-dialog-cache="false"
				        ui-dialog-url="/confirm/confirm-payback.html">
					确认回款
				</button>

				<button class="btn btn-yellow" ng-click="exportPaymentList()" title="导出回款支付列表">导出excel</button>
			</div>
		</div>
		<div class="table-wrap mh500 mt10">
			<table class="table">
				<thead>
				<tr>
					<th style="width: 40px;text-align: center;">序号</th>
					<th style="width: 150px;">商品名称</th>
					<!--<th style="width: 180px;">业务类型</th>-->
					<th style="width: 150px;">合同编号</th>
					<th style="width: 60px;">支付方式</th>
					<!--<th style="width: 170px;">支付账户</th>-->
					<!--<th style="width: 100px;">支付账号</th>-->
					<th style="width: 100px;">支付金额</th>
					<th style="width: 100px;">支付时间</th>
					<th style="width: 100px;">订单号</th>
					<th style="width: 120px;">支付平台单号</th>
					<th style="width: 100px;">是否已确认回款</th>
				</tr>
				</thead>
				<tbody>
				<tr ng-repeat="record in contracts" class="table-tr">
					<td style="text-align: center"><p ng-bind="$index + 1 + startPageIndex"></p></td>
					<td>{{record.product_name}}</td>
					<!--<td>{{record.business_type}}</td>-->
					<td><a href="/contract/edit.shtml#/base?id={{record.contract_id}}&contractType={{record.business_type_name}}">{{record.contract_code}}</a></td>
					<td>{{record.pay_way}}</td>
					<!--<td>{{record.user_name}}</td>-->
					<!--<td>{{record.pay_account_num}}</td>-->
					<td>{{record.pay_amount}}</td>
					<td>{{record.pay_time}}</td>
					<td>{{record.order_code}}</td>
					<td>{{record.pay_order_id}}</td>
					<td ng-if="record.refund_status == 1">是</td>
					<td ng-if="record.refund_status == 0">否</td>
				</tr>
				</tbody>
			</table>
			<div class="no-data" ng-if="contracts.length==0"><span>暂无数据</span></div>
		</div>
		<div id="pagination" class="pagination"></div>
	</div>
</div>
